/*
 * actionhandlerbase.h
 *
 *  Created on: 2016-2-27
 *      Author: ZhangXiyin
 */

#ifndef EYAS_SOURCES_IO_BASE_CONNECTIONHANDLERBASE_H_
#define EYAS_SOURCES_IO_BASE_CONNECTIONHANDLERBASE_H_
#include "../conf/def.h"
namespace eyas {
namespace io {
class connection_handler_base {
public:
	connection_handler_base(){}// = default;
	virtual ~connection_handler_base(){}// = default;

public:
	/**
	 * 客户端：连接服务器成功或失败
	 * 服务端：有客户端接入或socket被关闭
	 */
	virtual void on_connected(connection_ptr conn_ptr, const error_code& error) = 0;
};

} /* namespace io */
} /* namespace eyas */
#endif /* EYAS_SOURCES_IO_BASE_CONNECTIONHANDLERBASE_H_ */
